import request from '@/utils/request'

export function startInstance(params) {
  return request({
    url: '/instance/start',
    method: 'post',
    data: params
  })
}

export function getInstanceImage(params) {
  return request({
    url: `/instance/image/${params.id}`,
    method: 'get'
  })
}

export function getMyProcessInstances(params) {
  return request({
    url: `/instance/myInstance`,
    method: 'post',
    data: params
  })
}
